package day16.myreflect04;

/**
 * @author Xiao
 * @date 2021/8/10
 */
public class Student04 {
    private String name;
    private Integer age;

    private void show() { System.out.println("私有无参无返回值..."); }
    public void show1() {
        System.out.println("公共无参无返回值...");
    }
    public void show2(String name) {
        System.out.println("公共有参无返回值..." + name);
    }
    public int show3(int a, int b) {
        System.out.println("公共有参有返回值...");
        return a + b;
    }

    @Override
    public String toString() {
        return "Student04{" +
                "name='" + name + '\'' +
                ", age=" + age +
                '}';
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public Student04(String name, Integer age) {
        this.name = name;
        this.age = age;
    }

    public Student04() {
    }
}
